import { IContext, IParam } from '@/core';
import { PropType } from 'vue';

export const ratingProps = {
	name: {
		type: String,
	},
	value: {
		type: Number,
	},
	disabled: {
		type: Boolean,
		default: false,
	},
	readOnly: {
		type: Boolean,
		default: false,
	},
	max: {
		type: Number,
		default: 5,
	},
	allowHalf: {
		type: Boolean,
		default: false,
	},
	codeListTag: {
		type: String,
	},
	codeListType: {
		type: String,
	},
	data: {
		type: Object,
	},
	context: {
		type: Object as PropType<IContext>,
		default: {},
	},
	viewParams: {
		type: Object as PropType<IParam>,
	},
	texts: {
		type: Array,
		default: []
	},
}
